package Service;

import Model.Article;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @author zyp
 * date 2022-03-08
 */
public interface ArticleService {
    boolean addArticle(Article article, HttpSession session);
    int editArticle(Article article, int userId);
    List<Article> findAllArticles(HttpSession httpSession);

    Article findArticleById(int id);

    boolean delArticle(Article article, int id);
    List<Article> fAllArticles();
}
